﻿using GMS.Utils;
using Microsoft.Extensions.DependencyInjection;

namespace GMS.API.Config
{
    public static class RedisConfig
    {

        public static void AddRedis(this IServiceCollection service)
        {
            service.AddDistributedRedisCache(options =>
            {
                options.InstanceName = "GMS";
                options.Configuration = "127.0.0.1:6397";
            });
        }
    }
}